<%@page import="java.net.URLEncoder"%>
<%@page import="com.liferay.portlet.documentlibrary.service.DLFileEntryLocalServiceUtil"%>
<%@page import="com.liferay.portlet.documentlibrary.model.DLFileEntry"%>
<%@page import="com.mto.quangcao.service.QuangCao_bannerLocalServiceUtil"%>
<%@ include file="/html/config/init.jsp" %>

<div>DAI :<%=width %></div>
<div>RONG:<%=heght %></div>
<div>
	<%
		if(!quangCaoId.equals(""))
		{
			QuangCao_banner quangCao = QuangCao_bannerLocalServiceUtil.getQuangCao_banner(Long.parseLong(quangCaoId));
			DLFileEntry entry = DLFileEntryLocalServiceUtil.getFileEntry(quangCao.getFileEntryId());
			String url = ("/documents/" + entry.getGroupId() + 
					                   "/" + entry.getFolderId() + "/" + URLEncoder.encode(entry.getTitle(), "UTF-8"));
			String fullUrl = themeDisplay.getPortalURL() + themeDisplay.getPathContext() +url;
			System.out.println("fullUrl"+fullUrl);
		
	%>
	<img alt="Hình ảnh" src="<%=fullUrl%>">
	<%}
		else
		{
			
		}
	%>
</div>